<extend name="Common/layout"/>
<block name="content">
    <form method="post" action="">
        <div class="panel admin-panel">
            <div class="panel-head"><strong class="icon-reorder"> 转发列表</strong></div>
            <!--<div class="padding border-bottom">-->
            <!--<ul class="search">-->
            <!--<li>-->
            <!--<button type="button" class="button border-green" id="checkall"><span class="icon-check"></span>-->
            <!--全选-->
            <!--</button>-->
            <!--<button type="submit" class="button border-red"><span class="icon-trash-o"></span> 批量删除</button>-->
            <!--</li>-->
            <!--</ul>-->
            <!--</div>-->
            <empty name="data">
                <div style="text-align: center; line-height: 50px;">
                    <h3>没有数据</h3>
                </div>
                <else/>
                <table class="table table-hover text-center">
                    <tr>
                        <th>ID</th>
                        <th>用户名称</th>
                        <th>文章标题</th>
                        <th>转发时间</th>
                        <th>操作</th>
                    </tr>
                    <volist name="data" id="d">
                        <tr>
                            <td>
                                {$d.id}
                            </td>
                            <td>{$d.name}</td>
                            <td>{$d.title}</td>
                            <td>{$d.create_time}</td>
                            <td>
                            </td>
                        </tr>
                    </volist>
                    <tr>
                        <td colspan="9">
                            <div class="pagelist">
                                {$page}
                            </div>
                        </td>
                    </tr>
                </table>
            </empty>

        </div>
    </form>
</block>
<block name="js">
    <script type="text/javascript">
        function del(id) {
            if (confirm("您确定要删除吗?")) {
            }
        }

        $("#checkall").click(function () {
            $("input[name='id[]']").each(function () {
                if (this.checked) {
                    this.checked = false;
                }
                else {
                    this.checked = true;
                }
            });
        })

        function DelSelect() {
            var Checkbox = false;
            $("input[name='id[]']").each(function () {
                if (this.checked == true) {
                    Checkbox = true;
                }
            });
            if (Checkbox) {
                var t = confirm("您确认要删除选中的内容吗？");
                if (t == false) return false;
            }
            else {
                alert("请选择您要删除的内容!");
                return false;
            }
        }

    </script>
</block>